var NODE_ENV = process.env.NODE_ENV || "production";
var SERVER_ENV = process.env.SERVER_ENV || "test";
var DEVELOPMENT = NODE_ENV === "production" ? false : true;

var TEST_PRODUCTION_SERVER_IP = 'http://58.240.21.178:38080';

/**
 * scy只准改这里!!!!!!!
 */
// 调试时的context和server地址,如需改成后台人员机器,请在这里改动
var DEV_SERVER_CONTEXT = '/com.fable.platform';
var DEV_SERVER_IP = 'http://114.215.209.60:9090';
// var DEV_SERVER_IP = 'http://192.168.1.22:8080';
// var DEV_SERVER_CONTEXT = '/com.fable.platform';
// var DEV_SERVER_IP = 'http://localhost:8080';
// var DEV_SERVER_IP = 'http://58.240.21.178:38080'; // test
// var PRODUCTION_SERVER_IP = 'http://114.215.209.60:7070';
// var PRODUCTION_SERVER_IP = 'http://114.215.209.60:8082'; // 锡通测试环境
var PRODUCTION_SERVER_IP = 'http://114.215.209.60:9090'; // 南京五桥njwq
// var DEV_SERVER_IP = 'http://114.215.209.60:7070'; // 锡通

// 环境上下文
var SERVER_CONTEXT =
  DEVELOPMENT ?
  DEV_SERVER_CONTEXT :
  SERVER_ENV == 'test' ? '/com.fable.platform' : '/com.fable.platform';

// 文件预览ip
var SERVER_IP =
  DEVELOPMENT ?
  DEV_SERVER_IP :
  SERVER_ENV == 'test' ?
  TEST_PRODUCTION_SERVER_IP : PRODUCTION_SERVER_IP;


var SERVER_CONFIG = {
	SERVER_CONTEXT: SERVER_CONTEXT,
	SERVER_IP: SERVER_IP
}

module.exports = SERVER_CONFIG;